[pull] main from lynx-family:main#545
Merged
pull[bot] merged 1 commit intocolinaaa:mainfrom Mar 17, 2026
Merged
Conversation
## Summary Implements `__ElementAnimate` PAPI for the web platform layer, enabling Web Animations API support in the REPL and web environment. Previously, this function was undefined causing `ReferenceError` when worklet code called animations. ## Changes - **web-constants**: Added `ElementAnimatePAPI` type to `MainThreadGlobalThis` - **web-mainthread-apis**: Implemented `__ElementAnimate` with animation map tracking and timing option mapping (Lynx → Web Animations API) - **testing-environment**: Added `__ElementAnimate` implementation with state tracking for unit tests - **Tests**: 5 new test cases covering all animation operations (START/PLAY/PAUSE/CANCEL/FINISH) - **REPL example**: Interactive demo showing element animation with pause/play/cancel/restart controls ## Verification ✅ Rebased onto main with upstream REPL site ✅ Added comprehensive unit tests (testing-environment) ✅ Created manual UI test in REPL at http://localhost:3003/ ✅ All pre-commit hooks passed (eslint, biome, dprint) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Element animation support: start, pause, play, cancel, finish for named element animations; public APIs exposed for driving these operations. * New interactive "Element Animate" sample: pulsing element, playback status label, control buttons, a render entry point and a simple worklet-style router for demo controls. * **Tests** * Unit and end-to-end tests covering the full animation lifecycle and state transitions. * **Documentation** * Changeset entry documenting the animation PAPI addition. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )